﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
    xmlns:Custom2="clr-namespace:myBoard.Framework"
    xmlns:Custom="http://schemas.sheva.com/winfx/2006/xaml/presentation"
    x:Class="myBoard.Framework.MBMessageBox"
    Title="MBMessageBox" Height="Auto" Width="451" ResizeMode="NoResize" Topmost="True" WindowStyle="None" Background="{x:Null}" VerticalAlignment="Center" SizeToContent="Height" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
	<Window.Resources>
    <Custom2:MessageTypeTextColorConvertor x:Key="MessageTypeTextColorConvertor"/>
    <Custom2:MessageTypeGlowColorConvertor x:Key="MessageTypeGlowColorConvertor"/>
    <Custom2:MessageTypeColorConvertor x:Key="MessageTypeColorConvertor"/>
		<Style x:Key="ButtonFocusVisual">
			<Setter Property="Control.Template">
				<Setter.Value>
					<ControlTemplate>
						<Rectangle SnapsToDevicePixels="true" Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" Margin="2"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#F3F3F3" Offset="0"/>
			<GradientStop Color="#EBEBEB" Offset="0.5"/>
			<GradientStop Color="#DDDDDD" Offset="0.5"/>
			<GradientStop Color="#CDCDCD" Offset="1"/>
		</LinearGradientBrush>
		<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
		<Style x:Key="HomeNavigationButtonStyle" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<ControlTemplate.Resources>
							<Storyboard x:Key="HighlightOn">
								<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_background" Storyboard.TargetProperty="(FrameworkElement.Margin)">
									<SplineThicknessKeyFrame KeyTime="00:00:00.2000000" Value="0,11,0,0"/>
									<SplineThicknessKeyFrame KeyTime="00:00:00.3000000" Value="0,5,0,0"/>
								</ThicknessAnimationUsingKeyFrames>
							</Storyboard>
							<Storyboard x:Key="HighlightOff">
								<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_background" Storyboard.TargetProperty="(FrameworkElement.Margin)">
									<SplineThicknessKeyFrame KeyTime="00:00:00.2000000" Value="0,12,0,0"/>
									<SplineThicknessKeyFrame KeyTime="00:00:00.3000000" Value="0,-17,0,0"/>
								</ThicknessAnimationUsingKeyFrames>
							</Storyboard>
						</ControlTemplate.Resources>
						<Grid Width="67.623" Height="30.603">
							<Rectangle Fill="#FF00CB27" Stroke="{x:Null}" x:Name="_background" Width="Auto" Height="20" Margin="0,-17,0,0" VerticalAlignment="Top"/>
							<Border d:LayoutOverrides="Width" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Background="#00000000" Cursor="Hand">
								<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" Width="Auto" Height="Auto" HorizontalAlignment="Center" VerticalAlignment="Center"/>
							</Border>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsMouseOver" Value="True">
								<Trigger.EnterActions>
									<BeginStoryboard Storyboard="{StaticResource HighlightOn}" x:Name="HighlightOn_BeginStoryboard"/>
								</Trigger.EnterActions>
								<Trigger.ExitActions>
									<BeginStoryboard x:Name="HighlightOff_BeginStoryboard" Storyboard="{StaticResource HighlightOff}"/>
								</Trigger.ExitActions>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		
		<Style x:Key="PortfolioNavigationButtonStyle" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<ControlTemplate.Resources>
							<Storyboard x:Key="HighlightOn">
								<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_background" Storyboard.TargetProperty="(FrameworkElement.Margin)">
									<SplineThicknessKeyFrame KeyTime="00:00:00.2000000" Value="0,11,0,0"/>
									<SplineThicknessKeyFrame KeyTime="00:00:00.3000000" Value="0,5,0,0"/>
								</ThicknessAnimationUsingKeyFrames>
							</Storyboard>
							<Storyboard x:Key="HighlightOff">
								<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_background" Storyboard.TargetProperty="(FrameworkElement.Margin)">
									<SplineThicknessKeyFrame KeyTime="00:00:00.2000000" Value="0,12,0,0"/>
									<SplineThicknessKeyFrame KeyTime="00:00:00.3000000" Value="0,-17,0,0"/>
								</ThicknessAnimationUsingKeyFrames>
							</Storyboard>
						</ControlTemplate.Resources>
						<Grid Width="67.623" Height="30.603">
							<Rectangle Fill="#FF3B6BBF" Stroke="{x:Null}" x:Name="_background" Width="Auto" Height="20" Margin="0,-17,0,0" VerticalAlignment="Top"/>
							<Border d:LayoutOverrides="Width" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Background="#00000000" Cursor="Hand">
								<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" Width="Auto" Height="Auto" HorizontalAlignment="Center" VerticalAlignment="Center"/>
							</Border>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsMouseOver" Value="True">
								<Trigger.EnterActions>
									<BeginStoryboard Storyboard="{StaticResource HighlightOn}"/>
								</Trigger.EnterActions>
								<Trigger.ExitActions>
									<BeginStoryboard x:Name="HighlightOff_BeginStoryboard" Storyboard="{StaticResource HighlightOff}"/>
								</Trigger.ExitActions>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="AboutMeNavigationButtonStyle" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<ControlTemplate.Resources>
							<Storyboard x:Key="HighlightOn">
								<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_background" Storyboard.TargetProperty="(FrameworkElement.Margin)">
									<SplineThicknessKeyFrame KeyTime="00:00:00.2000000" Value="0,11,0,0"/>
									<SplineThicknessKeyFrame KeyTime="00:00:00.3000000" Value="0,5,0,0"/>
								</ThicknessAnimationUsingKeyFrames>
							</Storyboard>
							<Storyboard x:Key="HighlightOff">
								<ThicknessAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_background" Storyboard.TargetProperty="(FrameworkElement.Margin)">
									<SplineThicknessKeyFrame KeyTime="00:00:00.2000000" Value="0,12,0,0"/>
									<SplineThicknessKeyFrame KeyTime="00:00:00.3000000" Value="0,-17,0,0"/>
								</ThicknessAnimationUsingKeyFrames>
							</Storyboard>
						</ControlTemplate.Resources>
						<Grid Width="67.623" Height="30.603">
							<Rectangle Fill="#FFFF2900" Stroke="{x:Null}" x:Name="_background" Width="Auto" Height="20" Margin="0,-17,0,0" VerticalAlignment="Top"/>
							<Border d:LayoutOverrides="Width" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Background="#00000000" Cursor="Hand">
								<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" Width="Auto" Height="Auto" HorizontalAlignment="Center" VerticalAlignment="Center"/>
							</Border>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsMouseOver" Value="True">
								<Trigger.EnterActions>
									<BeginStoryboard Storyboard="{StaticResource HighlightOn}"/>
								</Trigger.EnterActions>
								<Trigger.ExitActions>
									<BeginStoryboard x:Name="HighlightOff_BeginStoryboard" Storyboard="{StaticResource HighlightOff}"/>
								</Trigger.ExitActions>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>

		<Style x:Key="ListBoxItemStyle1" TargetType="{x:Type ListBoxItem}">
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
			<Setter Property="Padding" Value="2,0,0,0"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListBoxItem}">
						<Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
						</Border>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<DataTemplate x:Key="MyProjectsTemplate">
			<StackPanel HorizontalAlignment="Stretch" Margin="0,0,0,9">
				<TextBlock Text="{Binding Path=Name, Mode=OneWay}" HorizontalAlignment="Center" FontFamily="Calibri"/>
				<Image Width="148" Height="70" Stretch="UniformToFill" Source="{Binding Path=ThumbSnapshot, Mode=OneWay}"/>
			</StackPanel>
		</DataTemplate>
		<SolidColorBrush x:Key="ListBorder" Color="#828790"/>
		<Style x:Key="LastestProjectsListbxStyle" TargetType="{x:Type ListBox}">
			<Setter Property="Background" Value="{StaticResource {x:Static SystemColors.WindowBrushKey}}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{StaticResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
			<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
			<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ListBox}">
						<Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1">
							<ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}">
								<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Visibility="Visible"/>
							</ScrollViewer>
						</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Background" TargetName="Bd" Value="{StaticResource {x:Static SystemColors.ControlBrushKey}}"/>
							</Trigger>
							<Trigger Property="IsGrouping" Value="true">
								<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>

		<Style x:Key="HomeBottomButtonsStyle" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Border Width="Auto">
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True"/>
						</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsKeyboardFocused" Value="true"/>
							<Trigger Property="ToggleButton.IsChecked" Value="true"/>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="#ADADAD"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="MessageTypeStyle" TargetType="{x:Type Label}">
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="Padding" Value="5"/>
			<Setter Property="HorizontalContentAlignment" Value="Left"/>
			<Setter Property="VerticalContentAlignment" Value="Top"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Label}">
						<ControlTemplate.Resources>
							<Storyboard x:Key="loopAnimation" RepeatBehavior="Forever">
								<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(UIElement.BitmapEffect).(OuterGlowBitmapEffect.Opacity)">
									<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
									<SplineDoubleKeyFrame KeyTime="00:00:02" Value="1"/>
								</DoubleAnimationUsingKeyFrames>
							</Storyboard>
						</ControlTemplate.Resources>
						<StackPanel SnapsToDevicePixels="true" Background="{TemplateBinding Background}">
							<Rectangle Fill="{Binding Converter={StaticResource MessageTypeColorConvertor}, Mode=OneWay}" Stroke="{x:Null}" Height="3" x:Name="rectangle">
								<Rectangle.BitmapEffect>
									<OuterGlowBitmapEffect GlowColor="{Binding Converter={StaticResource MessageTypeGlowColorConvertor}, Mode=OneWay}" GlowSize="7"/>
								</Rectangle.BitmapEffect>
							</Rectangle>
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Width="Auto" Height="Auto" RecognizesAccessKey="True" Margin="0,2,0,0"/>
						</StackPanel>
						<ControlTemplate.Triggers>
							<EventTrigger RoutedEvent="FrameworkElement.Loaded">
								<BeginStoryboard Storyboard="{StaticResource loopAnimation}"/>
							</EventTrigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="ButtonStyle" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<ControlTemplate.Resources>
							<Storyboard x:Key="MouseOverAnim">
								<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)">
									<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#FFA3A3A3"/>
								</ColorAnimationUsingKeyFrames>
							</Storyboard>
							<Storyboard x:Key="MouveLeaveAnim">
								<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="border" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)">
									<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00A3A3A3"/>
								</ColorAnimationUsingKeyFrames>
							</Storyboard>
						</ControlTemplate.Resources>
						<Border Width="Auto" Height="25" CornerRadius="5,5,5,5" BorderThickness="2,2,2,2" BorderBrush="#00A3A3A3" x:Name="border" Background="#00FFFFFF">
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" HorizontalAlignment="Center" VerticalAlignment="Center"/>
						</Border>
						<ControlTemplate.Triggers>
							<Trigger Property="IsMouseOver" Value="True">
								<Trigger.ExitActions>
									<BeginStoryboard Storyboard="{StaticResource MouveLeaveAnim}" x:Name="MouveLeaveAnim_BeginStoryboard"/>
								</Trigger.ExitActions>
								<Trigger.EnterActions>
									<BeginStoryboard Storyboard="{StaticResource MouseOverAnim}" x:Name="MouseOverAnim_BeginStoryboard"/>
								</Trigger.EnterActions>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<ControlTemplate x:Key="ScrollViewerControlTemplate1" TargetType="{x:Type ScrollViewer}">
			<Grid x:Name="Grid" Background="{TemplateBinding Background}">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="*"/>
					<ColumnDefinition Width="Auto"/>
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition Height="*"/>
					<RowDefinition Height="Auto"/>
				</Grid.RowDefinitions>
				<Rectangle Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" x:Name="Corner" Grid.Column="1" Grid.Row="1"/>
				<ScrollContentPresenter Margin="{TemplateBinding Padding}" x:Name="PART_ScrollContentPresenter" Grid.Column="0" Grid.Row="0" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" CanContentScroll="{TemplateBinding CanContentScroll}" CanHorizontallyScroll="False" CanVerticallyScroll="False"/>
				<ScrollBar Cursor="Arrow" x:Name="PART_VerticalScrollBar" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Grid.Column="1" Grid.Row="0" ViewportSize="{TemplateBinding ViewportHeight}" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Value="{Binding Path=VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" AutomationProperties.AutomationId="VerticalScrollBar" Style="{DynamicResource ScrollBarStyle1}"/>
				<ScrollBar Cursor="Arrow" x:Name="PART_HorizontalScrollBar" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Grid.Column="0" Grid.Row="1" Orientation="Horizontal" ViewportSize="{TemplateBinding ViewportWidth}" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Value="{Binding Path=HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" AutomationProperties.AutomationId="HorizontalScrollBar"/>
			</Grid>
		</ControlTemplate>
		<LinearGradientBrush x:Key="VerticalScrollBarBackground" EndPoint="1,0" StartPoint="0,0">
			<GradientStop Color="#E1E1E1" Offset="0"/>
			<GradientStop Color="#EDEDED" Offset="0.20"/>
			<GradientStop Color="#EDEDED" Offset="0.80"/>
			<GradientStop Color="#E3E3E3" Offset="1"/>
		</LinearGradientBrush>
		<SolidColorBrush x:Key="ScrollBarDisabledBackground" Color="#F4F4F4"/>
		<Style x:Key="ScrollBarButton" TargetType="{x:Type RepeatButton}">
			<Setter Property="OverridesDefaultStyle" Value="true"/>
			<Setter Property="Focusable" Value="false"/>
			<Setter Property="IsTabStop" Value="false"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type RepeatButton}">
						<Microsoft_Windows_Themes:ScrollChrome x:Name="Chrome" SnapsToDevicePixels="true" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="{TemplateBinding Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph}"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="VerticalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
			<Setter Property="OverridesDefaultStyle" Value="true"/>
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="Focusable" Value="false"/>
			<Setter Property="IsTabStop" Value="false"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type RepeatButton}">
						<Rectangle Fill="{TemplateBinding Background}" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="ScrollBarThumb" TargetType="{x:Type Thumb}">
			<Setter Property="OverridesDefaultStyle" Value="true"/>
			<Setter Property="IsTabStop" Value="false"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Thumb}">
						<Microsoft_Windows_Themes:ScrollChrome x:Name="Chrome" SnapsToDevicePixels="true" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsDragging}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="{TemplateBinding Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph}"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<LinearGradientBrush x:Key="HorizontalScrollBarBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#E1E1E1" Offset="0"/>
			<GradientStop Color="#EDEDED" Offset="0.20"/>
			<GradientStop Color="#EDEDED" Offset="0.80"/>
			<GradientStop Color="#E3E3E3" Offset="1"/>
		</LinearGradientBrush>
		<Style x:Key="HorizontalScrollBarPageButton" TargetType="{x:Type RepeatButton}">
			<Setter Property="OverridesDefaultStyle" Value="true"/>
			<Setter Property="Background" Value="Transparent"/>
			<Setter Property="Focusable" Value="false"/>
			<Setter Property="IsTabStop" Value="false"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type RepeatButton}">
						<Rectangle Fill="{TemplateBinding Background}" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"/>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="ScrollBarStyle1" TargetType="{x:Type ScrollBar}">
			<Setter Property="Background" Value="{StaticResource VerticalScrollBarBackground}"/>
			<Setter Property="Stylus.IsPressAndHoldEnabled" Value="false"/>
			<Setter Property="Stylus.IsFlicksEnabled" Value="false"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="Width" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
			<Setter Property="MinWidth" Value="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type ScrollBar}">
						<Grid x:Name="Bg" SnapsToDevicePixels="true">
							<Grid.RowDefinitions>
								<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
								<RowDefinition Height="0.00001*"/>
								<RowDefinition MaxHeight="{DynamicResource {x:Static SystemParameters.VerticalScrollBarButtonHeightKey}}"/>
							</Grid.RowDefinitions>
							<RepeatButton Style="{StaticResource ScrollBarButton}" IsEnabled="{TemplateBinding IsMouseOver}" Command="{x:Static ScrollBar.LineUpCommand}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="UpArrow"/>
							<Track x:Name="PART_Track" IsEnabled="{TemplateBinding IsMouseOver}" Grid.Row="1" IsDirectionReversed="true">
								<Track.DecreaseRepeatButton>
									<RepeatButton Style="{StaticResource VerticalScrollBarPageButton}" Command="{x:Static ScrollBar.PageUpCommand}"/>
								</Track.DecreaseRepeatButton>
								<Track.IncreaseRepeatButton>
									<RepeatButton Style="{StaticResource VerticalScrollBarPageButton}" Command="{x:Static ScrollBar.PageDownCommand}"/>
								</Track.IncreaseRepeatButton>
								<Track.Thumb>
									<Thumb Style="{StaticResource ScrollBarThumb}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="VerticalGripper"/>
								</Track.Thumb>
							</Track>
							<RepeatButton Style="{StaticResource ScrollBarButton}" IsEnabled="{TemplateBinding IsMouseOver}" Command="{x:Static ScrollBar.LineDownCommand}" Grid.Row="2" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="DownArrow"/>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Background" TargetName="Bg" Value="{StaticResource ScrollBarDisabledBackground}"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Style.Triggers>
				<Trigger Property="Orientation" Value="Horizontal">
					<Setter Property="Width" Value="Auto"/>
					<Setter Property="MinWidth" Value="0"/>
					<Setter Property="Height" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
					<Setter Property="MinHeight" Value="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarHeightKey}}"/>
					<Setter Property="Background" Value="{StaticResource HorizontalScrollBarBackground}"/>
					<Setter Property="Template">
						<Setter.Value>
							<ControlTemplate TargetType="{x:Type ScrollBar}">
								<Grid x:Name="Bg" SnapsToDevicePixels="true" Background="{TemplateBinding Background}">
									<Grid.ColumnDefinitions>
										<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
										<ColumnDefinition Width="0.00001*"/>
										<ColumnDefinition MaxWidth="{DynamicResource {x:Static SystemParameters.HorizontalScrollBarButtonWidthKey}}"/>
									</Grid.ColumnDefinitions>
									<RepeatButton Style="{StaticResource ScrollBarButton}" IsEnabled="{TemplateBinding IsMouseOver}" Command="{x:Static ScrollBar.LineLeftCommand}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="LeftArrow"/>
									<Track x:Name="PART_Track" IsEnabled="{TemplateBinding IsMouseOver}" Grid.Column="1">
										<Track.DecreaseRepeatButton>
											<RepeatButton Style="{StaticResource HorizontalScrollBarPageButton}" Command="{x:Static ScrollBar.PageLeftCommand}"/>
										</Track.DecreaseRepeatButton>
										<Track.IncreaseRepeatButton>
											<RepeatButton Style="{StaticResource HorizontalScrollBarPageButton}" Command="{x:Static ScrollBar.PageRightCommand}"/>
										</Track.IncreaseRepeatButton>
										<Track.Thumb>
											<Thumb Style="{StaticResource ScrollBarThumb}" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="HorizontalGripper"/>
										</Track.Thumb>
									</Track>
									<RepeatButton Style="{StaticResource ScrollBarButton}" IsEnabled="{TemplateBinding IsMouseOver}" Command="{x:Static ScrollBar.LineRightCommand}" Grid.Column="2" Microsoft_Windows_Themes:ScrollChrome.ScrollGlyph="RightArrow"/>
								</Grid>
								<ControlTemplate.Triggers>
									<Trigger Property="IsEnabled" Value="false">
										<Setter Property="Background" TargetName="Bg" Value="{StaticResource ScrollBarDisabledBackground}"/>
									</Trigger>
								</ControlTemplate.Triggers>
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Trigger>
			</Style.Triggers>
		</Style>
	</Window.Resources>
    <Grid VerticalAlignment="Center">
        
    	<Border HorizontalAlignment="Stretch" VerticalAlignment="Center" BorderBrush="#33000000" BorderThickness="8,8,8,8" CornerRadius="15,15,5,15">
    		<Border Width="Auto" Height="Auto" BorderBrush="#FFFFFFFF" BorderThickness="2,2,2,2" CornerRadius="8,8,0,8" VerticalAlignment="Center">
    			<StackPanel Background="{x:Null}" VerticalAlignment="Center">
    				<Border Opacity="1" Width="Auto" Height="72" BorderBrush="#FF2D2D2D" BorderThickness="3,3,3,3" CornerRadius="5,5,0,0" ClipToBounds="True">
    					<Border.Background>
    						<LinearGradientBrush EndPoint="0.5,0.012" StartPoint="0.5,1">
    							<GradientStop Color="#FF111111" Offset="0"/>
    							<GradientStop Color="#FF303030" Offset="1"/>
    							<GradientStop Color="#FF393939" Offset="0.808"/>
    							<GradientStop Color="#FF161616" Offset="0.38"/>
    						</LinearGradientBrush>
    					</Border.Background>
    					<Grid Width="Auto" Height="Auto">
    						<Label d:LayoutOverrides="Width, Height" HorizontalAlignment="Left" Margin="15,9.897,0,0" VerticalAlignment="Top" Content="myBoard" BorderBrush="{x:Null}" BorderThickness="1,0,0,0" FontFamily="Calibri" FontSize="10" Foreground="#FF24BAF8" Padding="0,0,0,0" x:Name="_messageSource">
    							<Label.BitmapEffect>
    								<DropShadowBitmapEffect ShadowDepth="2" Softness="0.025"/>
    							</Label.BitmapEffect>
    						</Label>
    						<TextBlock Margin="31,25.103,8,-4.103" FontFamily="Calibri" FontSize="16" Text="The system cannot find the file specified. (Exception from HRESULT: 0x80070002)" TextWrapping="Wrap" x:Name="_messageTitle">
    							<TextBlock.Foreground>
    								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    									<GradientStop Color="#FFA1A1A1" Offset="0"/>
    									<GradientStop Color="#FFFFFFFF" Offset="1"/>
    									<GradientStop Color="#FEDCDCDC" Offset="0.359"/>
    								</LinearGradientBrush>
    							</TextBlock.Foreground>
    						</TextBlock>
    						<Label HorizontalAlignment="Right" VerticalAlignment="Top" Content="{Binding Converter={StaticResource MessageTypeTextColorConvertor}, Mode=OneWay}" x:Name="_messageType" FontFamily="Calibri" Foreground="#FFFFFFFF" Style="{DynamicResource MessageTypeStyle}" Margin="0,-3,13,0" FontSize="11"/>
    					</Grid>
    				</Border>
    				<Border Width="Auto" Height="Auto">
    					<StackPanel ClipToBounds="True" x:Name="_sectionsHost" Width="Auto" Height="Auto">
    						<StackPanel.Background>
    							<LinearGradientBrush EndPoint="0.5,1.002" StartPoint="0.5,0.011">
    								<GradientStop Color="#FFAEAEAE" Offset="0.003"/>
    								<GradientStop Color="#FFFFFFFF" Offset="1"/>
    								<GradientStop Color="#FFFFFFFF" Offset="0"/>
    								<GradientStop Color="#FFE7E7E7" Offset="0.096"/>
    							</LinearGradientBrush>
    						</StackPanel.Background>
    						<ScrollViewer Width="408" Height="Auto" Margin="0,15,0,25" MaxHeight="116" Template="{DynamicResource ScrollViewerControlTemplate1}" VerticalScrollBarVisibility="Auto">
    							<TextBlock FontFamily="Calibri" FontSize="12" TextWrapping="Wrap" x:Name="_messageDescription" Width="Auto" Height="Auto"><Run Text="System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)"/><LineBreak/><Run Text="   at System.Reflection.Assembly.nLoadFile(String path, Evidence evidence)"/><LineBreak/><Run Text="   at System.Reflection.Assembly.LoadFile(String path)"/></TextBlock>
    						</ScrollViewer>
    						<StackPanel x:Name="buttonsContainer" Width="Auto" Height="25" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,0,0,10">
    							<Button x:Name="_okBt" Content="Ok" Margin="10,0,10,0" MinWidth="0" Foreground="#FF616161" FontFamily="Calibri" FontWeight="Bold" IsDefault="true" Visibility="Collapsed" Width="30" Style="{DynamicResource ButtonStyle}" Cursor="Hand" />
    							<Button x:Name="_yesBt" Content="Yes" MinWidth="0" FontFamily="Calibri" FontWeight="Bold" Foreground="#FF616161" IsDefault="false" Width="Auto" Height="Auto" Visibility="Collapsed" Margin="10,0,10,0" Style="{DynamicResource ButtonStyle}" Cursor="Hand" />
    							<Button x:Name="_noBt" Content="No" MinWidth="0" FontFamily="Calibri" FontWeight="Bold" Foreground="#FF616161" IsDefault="false" Width="Auto" Height="Auto" Visibility="Collapsed" Margin="10,0,10,0" Style="{DynamicResource ButtonStyle}" Cursor="Hand" />
    							<Button x:Name="_cancelBt" Content="Cancel" MinWidth="40" FontFamily="Calibri" FontWeight="Bold" Foreground="#FF616161" Width="Auto" Height="Auto" IsCancel="true" Margin="10,0,10,0" Style="{DynamicResource ButtonStyle}" Cursor="Hand" Visibility="Collapsed" />
    						</StackPanel>
    					</StackPanel>
    				</Border>
    				<Border HorizontalAlignment="Stretch" Width="Auto" Height="23" CornerRadius="0,0,0,5">
    					<Border.Background>
    						<LinearGradientBrush EndPoint="0.5,0.978" StartPoint="0.5,0.022">
    							<GradientStop Color="#FF525252" Offset="0"/>
    							<GradientStop Color="#FF2F2F2F" Offset="1"/>
    							<GradientStop Color="#FF7D7D7D" Offset="0.038"/>
    							<GradientStop Color="#FF646464" Offset="0.091"/>
    							<GradientStop Color="#FF6F6F6F" Offset="0.135"/>
    							<GradientStop Color="#FF444444" Offset="0.793"/>
    						</LinearGradientBrush>
    					</Border.Background>
    					<Grid Width="Auto" Height="Auto">
    						<Button Cursor="Hand" Style="{DynamicResource HomeBottomButtonsStyle}" Content="[ Copy to clipboard ]" FontFamily="Calibri" Foreground="#FFE7E7E7" x:Name="_copyToClipboardBt" Width="Auto" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0"/>
    					</Grid>
    				</Border>
    			</StackPanel>
    		</Border>
    	</Border>
        
    </Grid>
</Window>
